package com.hmys.api.service;

import com.hmys.api.model.WebUser;
import com.hmys.api.model.WebUserBasics;
import com.hmys.api.model.WebUserInvest;

/**
 * Created by chen365 on 2018/03/14.
 */
public interface WebUserService {
    WebUser selectByPhone(String phone);

    WebUser getCurrentUser();

    boolean isExist(String phone);

    int create(WebUser webUser);

    WebUser sginUp(WebUser webUser);

    WebUserBasics selectBasicsByPrimaryKey(Long userId);

    WebUserInvest selectInvestByPrimaryKey(Long userId);

    int updateInvestByPrimaryKey(WebUserInvest record);

    int updateBasicsByPrimaryKey(WebUserBasics record);

    String selectPhotoByPrimaryKey(Long userId);

    int updatePhotoByPrimaryKey(WebUser record);
}
